import axios from 'axios'

const httpRequestInstance = axios.create({
    baseURL: import.meta.env.VITE_FILE_SERVER+import.meta.env.VITE_APP_BASE_API,
    timeout: 5000
})

/**
 * 上传图片
 * 
 * @param data
 * return json
 * author huwl
 */
export const reqUploadImageAPI = (data) => {
    return httpRequestInstance({
        method: 'POST',
        headers: {
            "Content-Type": "multipart/form-data",
        },
        url: 'image/minioSingleUploadImage',
        data
    })
}